package com.itheima.patterns.behaviorpattern.observer;

//具体的观察者角色类
public class WeiXinObserver implements Observer{
    
    private String name;
    
    public WeiXinObserver(String name) {
        this.name = name;
    }
    
    @Override
    public void update(String message) {
        System.out.println(name + ": " + message);
    }
}